package com.leyou.auth.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserAuthService {

    /**
     *  把JWT写入用户cookie
     * @param username
     * @param password
     * @param response   token存放
     */
    void login(String username, String password, HttpServletResponse response);

    /**
     * 退出登录
     * @param request 请求参数
     * @param response 响应数据，写cookie用
     * @return 无
     */
    void logout(HttpServletRequest request, HttpServletResponse response);
}
